
package com.tempo.ellipsoids;

// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
import com.tempo.maths.BigMath;
import java.math.BigDecimal;

// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   Ellipsoid.java
public class ElpAbs
{
final protected static int SCALE = 18;
   protected ElpAbs(
           String strName,
           BigDecimal dblRadius,
           BigDecimal dblFlatening, 
           int scale)
   {
      this._name_ = strName;
      this._bdmRadius_ = dblRadius;
      this._bdmFlatening_ = dblFlatening;
      
      BigDecimal flatening_2 = this._bdmFlatening_.multiply(this._bdmFlatening_);
      this._bdmSquareExcentry_ = this._bdmFlatening_.multiply(BigMath.NMB_2).subtract(flatening_2);
      this._bdmExcentry_ = BigMath.sqrt(_bdmSquareExcentry_, scale);
      
      /*/
      System.out.println("_flatening_ :" + _flatening_);
      System.out.println("_squareExcentry_ :" + _squareExcentry_);
      System.out.println("_excentry_ :" + _excentry_);
      //*/
   }

   public BigDecimal getBdlRadius()
   {
      return _bdmRadius_;
   }

   public Double getDblRadius()
   {
      return Double.valueOf(_bdmRadius_.toString());
   }

   public BigDecimal getBdlFlatness()
   {
      return _bdmFlatening_;
   }

   public Double getDblFlatness()
   {
      return Double.valueOf(_bdmFlatening_.toString());
   }
   public BigDecimal getBdlExcentricity()
   {
      return _bdmExcentry_;
   }

   public Double getDblExcentricity()
   {
      return this._bdmExcentry_.doubleValue();
   }
   public BigDecimal getBdlSquareExcentricity()
   {
      return _bdmSquareExcentry_;
   }

   public Double getDblSquareExcentricity()
   {
      return Double.valueOf(_bdmSquareExcentry_.toString());
   }
   
   
   private String _name_;
   private BigDecimal _bdmRadius_;
   private BigDecimal _bdmFlatening_;
   private BigDecimal _bdmExcentry_;
   private BigDecimal _bdmSquareExcentry_;
   
   private double _dblRadius_;
   private double _dblFlatening_;
   private double _dblExcentry_;
   private double _dblSquareExcentry_;
   
}
